<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="bbs.*,core.*,util.*, java.util.*" %>
<%@ include file="/WEB-INF/include/checkUser.jsp" %>
<!DOCTYPE html>
<html>
<head>
<%@ include file="/WEB-INF/include/header.jsp" %>
<style>
    iframe { width: 100%; border: none; }
</style>
</head>
<%
    RequestParameter param = new RequestParameter(request);
    String cmd = param.getString("cmd", "");
    int boardId = param.getInt("bid", 0);
    BoardService boardService = new BoardService(request, boardId);
    if (boardService.canManageBoard() == false)
        new UnauthorizedAccessException("게시판 관리 권한 없음");
    String urlList = "articleList.jsp?" + request.getQueryString();
%>
<body>
<%@ include file="/WEB-INF/include/menu.jsp" %>

<div class="container main">

    <h1>(<%= boardService.getBoard().getTitle() %>) 게시판 설정 관리</h1>
    <hr />

    <div class="pull-right">
            <a href="<%= urlList %>" class="btn"><i class="icon-list"></i> 목록으로</a>
    </div>

    <iframe src="boardEdit1.jsp?bid=<%= boardId %>">
    </iframe>
    <hr />

    <iframe src="boardEdit2.jsp?bid=<%= boardId %>">
    </iframe>
    <hr />

    <div class="pull-right">
            <a href="<%= urlList %>" class="btn"><i class="icon-list"></i> 목록으로</a>
    </div>

</div>

<%@ include file="/WEB-INF/include/footer.jsp" %>
</body>
</html>
